import waveRequest from "@/api/request.js";

export const postSave = (data) => waveRequest({
    method: 'post',
    url: '/post/save',
    data
})

export const postDelete = (ids) => waveRequest({
    url: '/post/delete',
    method: 'post',
    data: {ids: ids}
})

export const postModify = (data) => waveRequest({
    url: '/post/modify',
    method: 'post',
    data
})

export const postQuery = (data) => waveRequest({
    url: '/post/query',
    method: 'post',
    data
})

export const postList = (data) => waveRequest({
    url: '/post/list',
    method: 'post',
    data
})

export const postPage = (data) => waveRequest({
    url: '/post/page',
    method: 'post',
    data
})

export const adminPostPage = (data) => waveRequest({
    url: '/post/admin/page',
    method: 'post',
    data
})